package xyz.ieden.jdbc.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by Gavin on 2017.08.05.
 */
public class User implements Serializable {

    private Integer id;
    private String userName;
    private String userPwd;
    private String email;
    private String lastIp;
    private Date lastDate;
    private Date createDate;

    public User() {
    }

    public User(String userName, String userPwd, String email, String lastIp, Date lastDate, Date createDate) {
        this.userName = userName;
        this.userPwd = userPwd;
        this.email = email;
        this.lastIp = lastIp;
        this.lastDate = lastDate;
        this.createDate = createDate;
    }

    // Setter and Getter Method
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getLastIp() {
        return lastIp;
    }

    public void setLastIp(String lastIp) {
        this.lastIp = lastIp;
    }

    public Date getLastDate() {
        return lastDate;
    }

    public void setLastDate(Date lastDate) {
        this.lastDate = lastDate;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
